//检测是否是微信浏览器
export const isWeiXin = () => {
    var ua = window.navigator.userAgent.toLowerCase();
    //通过正则表达式匹配ua中是否含有MicroMessenger字符串
    if (ua.match(/MicroMessenger/i) == 'micromessenger') {
        return true;
    } else {
        return false;
    }
}
// 判断当前机型是否为ios
export const getPhoneType = () => {
    let ua = navigator.userAgent.toLowerCase()
    return ua.includes('iphone') ? 'ios' : 'android'
}